var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;

var _def_LiuHaiShiPei = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.lenpinvalue = 0;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.onEnable = function () {
    if (cc.winSize.height / cc.winSize.height >= 2) {
      var e = this.node.getComponent(cc.Widget);
      var t = e.top;
      t += this.lenpinvalue;
      e.top = t;
      this.scheduleOnce(function () {
        e.updateAlignment();
      });
    }
  };
  __decorate([_property()], _creator.prototype, "lenpinvalue", undefined);
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_LiuHaiShiPei;